package mr.ali.videoapp.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import mr.ali.videoapp.portal.model.CollectionAlpay;
import mr.ali.videoapp.portal.mapper.CollectionAlpayMapper;
import mr.ali.videoapp.portal.service.ICollectionAlpayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr-ali
 * @since 2025-07-04
 */
@Service
public class CollectionAlpayServiceImpl extends ServiceImpl<CollectionAlpayMapper, CollectionAlpay> implements ICollectionAlpayService {
    @Resource
    private CollectionAlpayMapper collectionAlpayMapper;

    @Override
    public List<CollectionAlpay> getAlpays() {
        QueryWrapper<CollectionAlpay> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("displayed",1);
        List<CollectionAlpay> alpayList =collectionAlpayMapper.selectList(queryWrapper) ;
        return alpayList;
    }
}
